package com.model;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 简历-工作经历表
 * </p>
 *
 * @author Damon
 * @since 2021-04-27
 */


@AllArgsConstructor
@Data
@NoArgsConstructor
@TableName("resume_work_experience")
public class ResumeWorkExperience {
    @TableId
    private String id; /*工作经历表ID*/
    private String resumeid;/*简历表ID*/
    private String company;/*公司名称*/
    private LocalDateTime startDate;/*工作开始时间*/
    private LocalDateTime endDate;/*工作结束时间*/
    private String post;/*岗位名称*/
    private LocalDateTime createDate;/*创建时间*/
    private LocalDateTime updateDate;/* 更新时间*/
    private Boolean isdelete;/*逻辑删除 0-正常 1- 删除*/

    @TableField(exist = false)
    private String modify;

    public ResumeWorkExperience(String id,String resumeid, String company, String post,
                                LocalDateTime startDate,LocalDateTime endDate,LocalDateTime updateDate) {
        this.id=id;
        this.resumeid=resumeid;
        this.company=company;
        this.post=post;
        this.startDate=startDate;
        this.endDate=endDate;
        this.updateDate=updateDate;
    }

    public void setUpdateDate(LocalDateTime updateDate) {
        this.updateDate = updateDate;
    }

    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }

    public String getModify() {
        return modify;
    }

    public Serializable getId() {
        return id;
    }
}
